import random
j = ""
num = random.randint(1,12)
print(f"你打的是第{num}个灯")
for i in range(0,12):
    sum = random.randint(0,1)
    j += str(sum)

print(f"亮灯情况：{j}")

if j[num-1] == '1':
    print("你打中了")
    print("游戏结果:True")
else:
    print("你没有打中")
    print("游戏结果:False")







